package com.openbravo.pos.customers;

import java.awt.Component;
import javax.swing.DefaultListCellRenderer;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JList;

public class CustomerRenderer extends DefaultListCellRenderer
{
  private Icon icocustomer = new ImageIcon(getClass().getClassLoader().getResource("com/openbravo/images/kdmconfig.png"));

  public Component getListCellRendererComponent(JList paramJList, Object paramObject, int paramInt, boolean paramBoolean1, boolean paramBoolean2)
  {
    super.getListCellRendererComponent(paramJList, null, paramInt, paramBoolean1, paramBoolean2);
    setText(paramObject.toString());
    setIcon(this.icocustomer);
    return this;
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.pos.customers.CustomerRenderer
 * JD-Core Version:    0.6.0
 */